xen/cpupool: switch cpupool list to normal list interface
authorFrom: Juergen Gross <jgross@suse.com>
Mon, 7 Dec 2020 15:18:47 +0000 (16:18 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 7 Dec 2020 15:18:47 +0000 (16:18 +0100)
commitd5ce1f6791342cf88aa2f5be500146820e6506ac
tree293a099c58299bf8a3435a9e714ab243a6daf2cf
parent30d430b2126697dda0bd53d19fe267fb4d30e9b8
xen/cpupool: switch cpupool list to normal list interface

Instead of open coding something like a linked list just use the
available functionality from list.h.

The allocation of a new cpupool id is not aware of a possible wrap.
Fix that. We don't, however, consider the case of extremely many pools
(beyond 4 billion) as something which needs explicitly handling right
now. First and foremost there would need to be systems with 4 billion
CPUs to make this many pools a sensible thing to have.

While adding the required new include to private.h sort the includes.

Signed-off-by: From: Juergen Gross <jgross@suse.com>
Reviewed-by: Dario Faggioli <dfaggioli@suse.com>
xen/common/sched/cpupool.c
xen/common/sched/private.h